import java.util.Scanner;

public class ZhiJiaoSanJiaoXing {


    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入三角形的底边长");
        double base = scanner.nextDouble();

        System.out.println("请输入三角形的高");
        double height = scanner.nextDouble();

        double area = calculatearea(base,height);
        System.out.println("三角形的面积是： " +area);

        scanner.close();
    }
    public static double calculatearea(double base, double height) {return 0.5 * base * height;}

}
